package com.zhx.socketio.socketio.vo;

import lombok.Data;

import java.io.Serializable;
import java.util.Objects;

@Data
public class LoginVO implements Serializable {

    private String orgganId;

    private String loginUid;

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        LoginVO loginVO = (LoginVO) o;
        return Objects.equals(orgganId, loginVO.orgganId) &&
                Objects.equals(loginUid, loginVO.loginUid);
    }

    @Override
    public int hashCode() {
        return Objects.hash(orgganId, loginUid);
    }

    @Override
    public String toString() {
        return "LoginVO{" +
                "orgganId='" + orgganId + '\'' +
                ", loginUid='" + loginUid + '\'' +
                '}';
    }
}
